package com.ark.cloud.java.persistence.entity;

/**
 * Copyright(c): 2021 Cloud-Ark Inc.
 * Author(s): Ma Wei (mawei@cloud-ark.com)
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**

 * 平台平台数据

 */
@Data
@TableName("plat_state")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PlatState {

//    @TableId(type = IdType.AUTO, value = "id")
    @TableField("id")
    private Long platStateId;      //唯一自增主键

    @TableField("entity_id")
    private String id;                //唯一标识	EntityID	1

    @TableField("db_id")
    private Integer dbid;            //	在MySQL数据库表中的id
    @TableField("entity_name")
    private String name;             // 名称	EntityName	1

    @TableField("timestamp")
    private String timestamp;       //	时间	TimeStamp	1

    @TableField("type_id")
    private Long typeId;      //平台类型 EntityType

    private EntityType type;            //	平台类型	EntityType	1

    @TableField("side_id")
    private String sideId;          // 所属阵营id	EntityID	1

    @TableField("side_posture")
    private short sidePosture;

    @TableField("pos")
    private Long vectedId;        //坐标id
    private Vec3D pos;             //  坐标	Vec3D	1

    @TableField("ori")              //姿态id
    private Long angleId;

    private EulerAngle ori;             //  姿态	EulerAngle	1

    @TableField("vel")
    private Long vectefId;            //速度id

    private Vec3F vel;             //	速度	Vec3F	1

    @TableField("damaged")
    private float damaged;             // 毁伤程度	float	1

    @TableField("custom_id")
    private String customid;         //


}
